//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.restaurant.application.indexes.goodscouponlist.mysql;

import com.google.common.collect.Lists;
import com.nebutown.generation.Convert;
import com.nebutown.generation.PickableBean;
import com.nebutown.generation.basictype.UID;
import java.util.List;

public class GoodsCouponListBean implements PickableBean {
    public static final String FN_RECORDID = "recordId";
    public static final String FN_GOODSCOUPON = "GoodsCoupon";
    public static final String FN_GOODSUID = "goodsUID";
    public static final String FN_NAME = "name";
    public static final String FN_GOODSID = "goodsId";
    public static final String FN_COUPONNUMBER = "couponNumber";
    public static final String FN_CREATETIME = "createTime";
    public static final String FN_FIRSTCUSTOMERID = "firstCustomerId";
    public static final String FN_FIRSTPHONE = "firstPhone";
    public static final String FN_USEFUL = "useful";
    public static final String FN_STATE = "state";
    public static final String FN_USEDTIME = "usedTime";
    public static final String FN_USEDCUSTOMERID = "usedCustomerId";
    public static final String FN_USEDPHONE = "usedPhone";
    public static final String FN_CASHIERNAME = "cashierName";
    public static final String FN_DELIVERYSTATE = "deliveryState";
    public static final String FN_TYPE = "type";
    public static final String FN_ORDERNUMBER = "orderNumber";
    public static final String FN_ADDRESS = "address";
    public static final String FN_LOGISTICAL = "logistical";
    public static final String FN_CURRENTCUSTOMERID = "currentCustomerId";
    public static final String FN_CURRENTPHONE = "currentPhone";
    public static final String FN_CURRENTNAME = "currentName";
    public static final String FN_CURRENTCUSTOMERUID = "currentCustomerUid";
    public static final List<String> FIELD_NAMES = Lists.newArrayList(new String[]{"recordId", "GoodsCoupon", "goodsUID", "name", "goodsId", "couponNumber", "createTime", "firstCustomerId", "firstPhone", "useful", "state", "usedTime", "usedCustomerId", "usedPhone", "cashierName", "deliveryState", "type", "orderNumber", "address", "logistical", "currentCustomerId", "currentPhone", "currentName", "currentCustomerUid"});
    private Long recordId;
    private UID GoodsCoupon;
    private String goodsUID;
    private String name;
    private String goodsId;
    private String couponNumber;
    private Long createTime;
    private String firstCustomerId;
    private String firstPhone;
    private String useful;
    private String state;
    private Long usedTime;
    private String usedCustomerId;
    private String usedPhone;
    private String cashierName;
    private String deliveryState;
    private String type;
    private String orderNumber;
    private String address;
    private String logistical;
    private String currentCustomerId;
    private String currentPhone;
    private String currentName;
    private String currentCustomerUid;

    public GoodsCouponListBean(Long recordId, UID GoodsCoupon, String goodsUID, String name, String goodsId, String couponNumber, Long createTime, String firstCustomerId, String firstPhone, String useful, String state, Long usedTime, String usedCustomerId, String usedPhone, String cashierName, String deliveryState, String type, String orderNumber, String address, String logistical, String currentCustomerId, String currentPhone, String currentName, String currentCustomerUid) {
        this.setRecordId(recordId);
        this.setGoodsCoupon(GoodsCoupon);
        this.setGoodsUID(goodsUID);
        this.setName(name);
        this.setGoodsId(goodsId);
        this.setCouponNumber(couponNumber);
        this.setCreateTime(createTime);
        this.setFirstCustomerId(firstCustomerId);
        this.setFirstPhone(firstPhone);
        this.setUseful(useful);
        this.setState(state);
        this.setUsedTime(usedTime);
        this.setUsedCustomerId(usedCustomerId);
        this.setUsedPhone(usedPhone);
        this.setCashierName(cashierName);
        this.setDeliveryState(deliveryState);
        this.setType(type);
        this.setOrderNumber(orderNumber);
        this.setAddress(address);
        this.setLogistical(logistical);
        this.setCurrentCustomerId(currentCustomerId);
        this.setCurrentPhone(currentPhone);
        this.setCurrentName(currentName);
        this.setCurrentCustomerUid(currentCustomerUid);
    }

    public GoodsCouponListBean() {
    }

    public GoodsCouponListBean duplicate() {
        GoodsCouponListBean result = new GoodsCouponListBean();
        result.recordId = this.recordId;
        result.GoodsCoupon = this.GoodsCoupon;
        result.goodsUID = this.goodsUID;
        result.name = this.name;
        result.goodsId = this.goodsId;
        result.couponNumber = this.couponNumber;
        result.createTime = this.createTime;
        result.firstCustomerId = this.firstCustomerId;
        result.firstPhone = this.firstPhone;
        result.useful = this.useful;
        result.state = this.state;
        result.usedTime = this.usedTime;
        result.usedCustomerId = this.usedCustomerId;
        result.usedPhone = this.usedPhone;
        result.cashierName = this.cashierName;
        result.deliveryState = this.deliveryState;
        result.type = this.type;
        result.orderNumber = this.orderNumber;
        result.address = this.address;
        result.logistical = this.logistical;
        result.currentCustomerId = this.currentCustomerId;
        result.currentPhone = this.currentPhone;
        result.currentName = this.currentName;
        result.currentCustomerUid = this.currentCustomerUid;
        return result;
    }

    public String toString() {
        return Convert.toJson(this);
    }

    public Long getRecordId() {
        return this.recordId;
    }

    public void setRecordId(Long value) {
        this.recordId = value;
    }

    public GoodsCouponListBean withRecordId(Long value) {
        this.setRecordId(value);
        return this;
    }

    public GoodsCouponListBean withRecordId(Long value, Long defaultValue) {
        this.setRecordId(value == null ? defaultValue : value);
        return this;
    }

    public UID getGoodsCoupon() {
        return this.GoodsCoupon;
    }

    public void setGoodsCoupon(UID value) {
        this.GoodsCoupon = value;
    }

    public GoodsCouponListBean withGoodsCoupon(UID value) {
        this.setGoodsCoupon(value);
        return this;
    }

    public GoodsCouponListBean withGoodsCoupon(UID value, UID defaultValue) {
        this.setGoodsCoupon(value == null ? defaultValue : value);
        return this;
    }

    public String getGoodsUID() {
        return this.goodsUID;
    }

    public void setGoodsUID(String value) {
        this.goodsUID = value;
    }

    public GoodsCouponListBean withGoodsUID(String value) {
        this.setGoodsUID(value);
        return this;
    }

    public GoodsCouponListBean withGoodsUID(String value, String defaultValue) {
        this.setGoodsUID(value == null ? defaultValue : value);
        return this;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String value) {
        this.name = value;
    }

    public GoodsCouponListBean withName(String value) {
        this.setName(value);
        return this;
    }

    public GoodsCouponListBean withName(String value, String defaultValue) {
        this.setName(value == null ? defaultValue : value);
        return this;
    }

    public String getGoodsId() {
        return this.goodsId;
    }

    public void setGoodsId(String value) {
        this.goodsId = value;
    }

    public GoodsCouponListBean withGoodsId(String value) {
        this.setGoodsId(value);
        return this;
    }

    public GoodsCouponListBean withGoodsId(String value, String defaultValue) {
        this.setGoodsId(value == null ? defaultValue : value);
        return this;
    }

    public String getCouponNumber() {
        return this.couponNumber;
    }

    public void setCouponNumber(String value) {
        this.couponNumber = value;
    }

    public GoodsCouponListBean withCouponNumber(String value) {
        this.setCouponNumber(value);
        return this;
    }

    public GoodsCouponListBean withCouponNumber(String value, String defaultValue) {
        this.setCouponNumber(value == null ? defaultValue : value);
        return this;
    }

    public Long getCreateTime() {
        return this.createTime;
    }

    public void setCreateTime(Long value) {
        this.createTime = value;
    }

    public GoodsCouponListBean withCreateTime(Long value) {
        this.setCreateTime(value);
        return this;
    }

    public GoodsCouponListBean withCreateTime(Long value, Long defaultValue) {
        this.setCreateTime(value == null ? defaultValue : value);
        return this;
    }

    public String getFirstCustomerId() {
        return this.firstCustomerId;
    }

    public void setFirstCustomerId(String value) {
        this.firstCustomerId = value;
    }

    public GoodsCouponListBean withFirstCustomerId(String value) {
        this.setFirstCustomerId(value);
        return this;
    }

    public GoodsCouponListBean withFirstCustomerId(String value, String defaultValue) {
        this.setFirstCustomerId(value == null ? defaultValue : value);
        return this;
    }

    public String getFirstPhone() {
        return this.firstPhone;
    }

    public void setFirstPhone(String value) {
        this.firstPhone = value;
    }

    public GoodsCouponListBean withFirstPhone(String value) {
        this.setFirstPhone(value);
        return this;
    }

    public GoodsCouponListBean withFirstPhone(String value, String defaultValue) {
        this.setFirstPhone(value == null ? defaultValue : value);
        return this;
    }

    public String getUseful() {
        return this.useful;
    }

    public void setUseful(String value) {
        this.useful = value;
    }

    public GoodsCouponListBean withUseful(String value) {
        this.setUseful(value);
        return this;
    }

    public GoodsCouponListBean withUseful(String value, String defaultValue) {
        this.setUseful(value == null ? defaultValue : value);
        return this;
    }

    public String getState() {
        return this.state;
    }

    public void setState(String value) {
        this.state = value;
    }

    public GoodsCouponListBean withState(String value) {
        this.setState(value);
        return this;
    }

    public GoodsCouponListBean withState(String value, String defaultValue) {
        this.setState(value == null ? defaultValue : value);
        return this;
    }

    public Long getUsedTime() {
        return this.usedTime;
    }

    public void setUsedTime(Long value) {
        this.usedTime = value;
    }

    public GoodsCouponListBean withUsedTime(Long value) {
        this.setUsedTime(value);
        return this;
    }

    public GoodsCouponListBean withUsedTime(Long value, Long defaultValue) {
        this.setUsedTime(value == null ? defaultValue : value);
        return this;
    }

    public String getUsedCustomerId() {
        return this.usedCustomerId;
    }

    public void setUsedCustomerId(String value) {
        this.usedCustomerId = value;
    }

    public GoodsCouponListBean withUsedCustomerId(String value) {
        this.setUsedCustomerId(value);
        return this;
    }

    public GoodsCouponListBean withUsedCustomerId(String value, String defaultValue) {
        this.setUsedCustomerId(value == null ? defaultValue : value);
        return this;
    }

    public String getUsedPhone() {
        return this.usedPhone;
    }

    public void setUsedPhone(String value) {
        this.usedPhone = value;
    }

    public GoodsCouponListBean withUsedPhone(String value) {
        this.setUsedPhone(value);
        return this;
    }

    public GoodsCouponListBean withUsedPhone(String value, String defaultValue) {
        this.setUsedPhone(value == null ? defaultValue : value);
        return this;
    }

    public String getCashierName() {
        return this.cashierName;
    }

    public void setCashierName(String value) {
        this.cashierName = value;
    }

    public GoodsCouponListBean withCashierName(String value) {
        this.setCashierName(value);
        return this;
    }

    public GoodsCouponListBean withCashierName(String value, String defaultValue) {
        this.setCashierName(value == null ? defaultValue : value);
        return this;
    }

    public String getDeliveryState() {
        return this.deliveryState;
    }

    public void setDeliveryState(String value) {
        this.deliveryState = value;
    }

    public GoodsCouponListBean withDeliveryState(String value) {
        this.setDeliveryState(value);
        return this;
    }

    public GoodsCouponListBean withDeliveryState(String value, String defaultValue) {
        this.setDeliveryState(value == null ? defaultValue : value);
        return this;
    }

    public String getType() {
        return this.type;
    }

    public void setType(String value) {
        this.type = value;
    }

    public GoodsCouponListBean withType(String value) {
        this.setType(value);
        return this;
    }

    public GoodsCouponListBean withType(String value, String defaultValue) {
        this.setType(value == null ? defaultValue : value);
        return this;
    }

    public String getOrderNumber() {
        return this.orderNumber;
    }

    public void setOrderNumber(String value) {
        this.orderNumber = value;
    }

    public GoodsCouponListBean withOrderNumber(String value) {
        this.setOrderNumber(value);
        return this;
    }

    public GoodsCouponListBean withOrderNumber(String value, String defaultValue) {
        this.setOrderNumber(value == null ? defaultValue : value);
        return this;
    }

    public String getAddress() {
        return this.address;
    }

    public void setAddress(String value) {
        this.address = value;
    }

    public GoodsCouponListBean withAddress(String value) {
        this.setAddress(value);
        return this;
    }

    public GoodsCouponListBean withAddress(String value, String defaultValue) {
        this.setAddress(value == null ? defaultValue : value);
        return this;
    }

    public String getLogistical() {
        return this.logistical;
    }

    public void setLogistical(String value) {
        this.logistical = value;
    }

    public GoodsCouponListBean withLogistical(String value) {
        this.setLogistical(value);
        return this;
    }

    public GoodsCouponListBean withLogistical(String value, String defaultValue) {
        this.setLogistical(value == null ? defaultValue : value);
        return this;
    }

    public String getCurrentCustomerId() {
        return this.currentCustomerId;
    }

    public void setCurrentCustomerId(String value) {
        this.currentCustomerId = value;
    }

    public GoodsCouponListBean withCurrentCustomerId(String value) {
        this.setCurrentCustomerId(value);
        return this;
    }

    public GoodsCouponListBean withCurrentCustomerId(String value, String defaultValue) {
        this.setCurrentCustomerId(value == null ? defaultValue : value);
        return this;
    }

    public String getCurrentPhone() {
        return this.currentPhone;
    }

    public void setCurrentPhone(String value) {
        this.currentPhone = value;
    }

    public GoodsCouponListBean withCurrentPhone(String value) {
        this.setCurrentPhone(value);
        return this;
    }

    public GoodsCouponListBean withCurrentPhone(String value, String defaultValue) {
        this.setCurrentPhone(value == null ? defaultValue : value);
        return this;
    }

    public String getCurrentName() {
        return this.currentName;
    }

    public void setCurrentName(String value) {
        this.currentName = value;
    }

    public GoodsCouponListBean withCurrentName(String value) {
        this.setCurrentName(value);
        return this;
    }

    public GoodsCouponListBean withCurrentName(String value, String defaultValue) {
        this.setCurrentName(value == null ? defaultValue : value);
        return this;
    }

    public String getCurrentCustomerUid() {
        return this.currentCustomerUid;
    }

    public void setCurrentCustomerUid(String value) {
        this.currentCustomerUid = value;
    }

    public GoodsCouponListBean withCurrentCustomerUid(String value) {
        this.setCurrentCustomerUid(value);
        return this;
    }

    public GoodsCouponListBean withCurrentCustomerUid(String value, String defaultValue) {
        this.setCurrentCustomerUid(value == null ? defaultValue : value);
        return this;
    }

    public Object getValueOf(String name) {
        byte var3 = -1;
        switch(name.hashCode()) {
            case -1585420661:
                if (name.equals("logistical")) {
                    var3 = 19;
                }
                break;
            case -1439168202:
                if (name.equals("usedCustomerId")) {
                    var3 = 12;
                }
                break;
            case -1396827031:
                if (name.equals("firstCustomerId")) {
                    var3 = 7;
                }
                break;
            case -1147692044:
                if (name.equals("address")) {
                    var3 = 18;
                }
                break;
            case -836041066:
                if (name.equals("useful")) {
                    var3 = 9;
                }
                break;
            case -799234740:
                if (name.equals("recordId")) {
                    var3 = 0;
                }
                break;
            case -636559374:
                if (name.equals("currentCustomerId")) {
                    var3 = 20;
                }
                break;
            case -334884611:
                if (name.equals("deliveryState")) {
                    var3 = 15;
                }
                break;
            case -279409622:
                if (name.equals("usedTime")) {
                    var3 = 11;
                }
                break;
            case -175003490:
                if (name.equals("firstPhone")) {
                    var3 = 8;
                }
                break;
            case -75485263:
                if (name.equals("usedPhone")) {
                    var3 = 13;
                }
                break;
            case 3373707:
                if (name.equals("name")) {
                    var3 = 3;
                }
                break;
            case 3575610:
                if (name.equals("type")) {
                    var3 = 16;
                }
                break;
            case 109757585:
                if (name.equals("state")) {
                    var3 = 10;
                }
                break;
            case 207037201:
                if (name.equals("goodsId")) {
                    var3 = 4;
                }
                break;
            case 601048996:
                if (name.equals("currentName")) {
                    var3 = 22;
                }
                break;
            case 1358670588:
                if (name.equals("GoodsCoupon")) {
                    var3 = 1;
                }
                break;
            case 1369213417:
                if (name.equals("createTime")) {
                    var3 = 6;
                }
                break;
            case 1454707573:
                if (name.equals("currentPhone")) {
                    var3 = 21;
                }
                break;
            case 1471168494:
                if (name.equals("cashierName")) {
                    var3 = 14;
                }
                break;
            case 1488198711:
                if (name.equals("orderNumber")) {
                    var3 = 17;
                }
                break;
            case 1571515151:
                if (name.equals("couponNumber")) {
                    var3 = 5;
                }
                break;
            case 1741507673:
                if (name.equals("currentCustomerUid")) {
                    var3 = 23;
                }
                break;
            case 2123196698:
                if (name.equals("goodsUID")) {
                    var3 = 2;
                }
        }

        switch(var3) {
            case 0:
                return this.getRecordId();
            case 1:
                return this.getGoodsCoupon();
            case 2:
                return this.getGoodsUID();
            case 3:
                return this.getName();
            case 4:
                return this.getGoodsId();
            case 5:
                return this.getCouponNumber();
            case 6:
                return this.getCreateTime();
            case 7:
                return this.getFirstCustomerId();
            case 8:
                return this.getFirstPhone();
            case 9:
                return this.getUseful();
            case 10:
                return this.getState();
            case 11:
                return this.getUsedTime();
            case 12:
                return this.getUsedCustomerId();
            case 13:
                return this.getUsedPhone();
            case 14:
                return this.getCashierName();
            case 15:
                return this.getDeliveryState();
            case 16:
                return this.getType();
            case 17:
                return this.getOrderNumber();
            case 18:
                return this.getAddress();
            case 19:
                return this.getLogistical();
            case 20:
                return this.getCurrentCustomerId();
            case 21:
                return this.getCurrentPhone();
            case 22:
                return this.getCurrentName();
            case 23:
                return this.getCurrentCustomerUid();
            default:
                return null;
        }
    }

    public void setValueOf(String name, Object value) {
        byte var4 = -1;
        switch(name.hashCode()) {
            case -1585420661:
                if (name.equals("logistical")) {
                    var4 = 19;
                }
                break;
            case -1439168202:
                if (name.equals("usedCustomerId")) {
                    var4 = 12;
                }
                break;
            case -1396827031:
                if (name.equals("firstCustomerId")) {
                    var4 = 7;
                }
                break;
            case -1147692044:
                if (name.equals("address")) {
                    var4 = 18;
                }
                break;
            case -836041066:
                if (name.equals("useful")) {
                    var4 = 9;
                }
                break;
            case -799234740:
                if (name.equals("recordId")) {
                    var4 = 0;
                }
                break;
            case -636559374:
                if (name.equals("currentCustomerId")) {
                    var4 = 20;
                }
                break;
            case -334884611:
                if (name.equals("deliveryState")) {
                    var4 = 15;
                }
                break;
            case -279409622:
                if (name.equals("usedTime")) {
                    var4 = 11;
                }
                break;
            case -175003490:
                if (name.equals("firstPhone")) {
                    var4 = 8;
                }
                break;
            case -75485263:
                if (name.equals("usedPhone")) {
                    var4 = 13;
                }
                break;
            case 3373707:
                if (name.equals("name")) {
                    var4 = 3;
                }
                break;
            case 3575610:
                if (name.equals("type")) {
                    var4 = 16;
                }
                break;
            case 109757585:
                if (name.equals("state")) {
                    var4 = 10;
                }
                break;
            case 207037201:
                if (name.equals("goodsId")) {
                    var4 = 4;
                }
                break;
            case 601048996:
                if (name.equals("currentName")) {
                    var4 = 22;
                }
                break;
            case 1358670588:
                if (name.equals("GoodsCoupon")) {
                    var4 = 1;
                }
                break;
            case 1369213417:
                if (name.equals("createTime")) {
                    var4 = 6;
                }
                break;
            case 1454707573:
                if (name.equals("currentPhone")) {
                    var4 = 21;
                }
                break;
            case 1471168494:
                if (name.equals("cashierName")) {
                    var4 = 14;
                }
                break;
            case 1488198711:
                if (name.equals("orderNumber")) {
                    var4 = 17;
                }
                break;
            case 1571515151:
                if (name.equals("couponNumber")) {
                    var4 = 5;
                }
                break;
            case 1741507673:
                if (name.equals("currentCustomerUid")) {
                    var4 = 23;
                }
                break;
            case 2123196698:
                if (name.equals("goodsUID")) {
                    var4 = 2;
                }
        }

        switch(var4) {
            case 0:
                this.setRecordId((Long)value);
                return;
            case 1:
                this.setGoodsCoupon((UID)value);
                return;
            case 2:
                this.setGoodsUID((String)value);
                return;
            case 3:
                this.setName((String)value);
                return;
            case 4:
                this.setGoodsId((String)value);
                return;
            case 5:
                this.setCouponNumber((String)value);
                return;
            case 6:
                this.setCreateTime((Long)value);
                return;
            case 7:
                this.setFirstCustomerId((String)value);
                return;
            case 8:
                this.setFirstPhone((String)value);
                return;
            case 9:
                this.setUseful((String)value);
                return;
            case 10:
                this.setState((String)value);
                return;
            case 11:
                this.setUsedTime((Long)value);
                return;
            case 12:
                this.setUsedCustomerId((String)value);
                return;
            case 13:
                this.setUsedPhone((String)value);
                return;
            case 14:
                this.setCashierName((String)value);
                return;
            case 15:
                this.setDeliveryState((String)value);
                return;
            case 16:
                this.setType((String)value);
                return;
            case 17:
                this.setOrderNumber((String)value);
                return;
            case 18:
                this.setAddress((String)value);
                return;
            case 19:
                this.setLogistical((String)value);
                return;
            case 20:
                this.setCurrentCustomerId((String)value);
                return;
            case 21:
                this.setCurrentPhone((String)value);
                return;
            case 22:
                this.setCurrentName((String)value);
                return;
            case 23:
                this.setCurrentCustomerUid((String)value);
                return;
            default:
        }
    }

    public boolean hasField(String name) {
        return FIELD_NAMES.contains(name);
    }

    public int hashCode() {
        return this.signature().hashCode();
    }

    public boolean equals(Object o) {
        return !(o instanceof GoodsCouponListBean) ? false : this.signature().equals(((GoodsCouponListBean)o).signature());
    }

    public String signature() {
        throw new RuntimeException("Bean GoodsCouponListBean has no signature defined, no hash code or equals possible.");
    }
}
